/*
 * Created on Aug 26, 2011
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package demo.basic.employeedb.server;

import org.systinet.wasp.Wasp;
import org.systinet.wasp.webservice.Registry;

/**
 * @author Administrator
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class EmployeeDBServer {
	
    private static String servicePath = "/demo/basic/EmployeeDB";

    public static void main(String[] args) throws Exception {

        String serverURL = System.getProperty("systinet.demo.server.url", "http://localhost:6060");

        // initialize Systinet Server and start server like 'HTTP'
        Wasp.startServer(serverURL);

        // publish EmployeeDBService
        Registry.publish(servicePath, new EmployeeDBService());
        System.out.println("EmployeeDBService is published on " + servicePath);
    }
}
